# $Id: PKGBUILD 78718 2012-10-23 06:46:58Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Shahar Weiss <sweiss4@gmx.net>

pkgname=torcs-data
pkgver=1.3.4
pkgrel=1
pkgdesc="A 3D racing cars simulator using OpenGL"
url="http://torcs.sourceforge.net"
license=("GPL")
arch=('any')
makedepends=('plib' 'freeglut' 'freealut' 'libxi' 'libxmu' 'libxrandr' 'libpng' 'libvorbis' 'mesa' 'glu')
source=(http://downloads.sourceforge.net/sourceforge/torcs/torcs-${pkgver/_/-}.tar.bz2)
md5sums=('07dbc9c53e2b177be1f53fe97d53d039')

build() {
  cd ${srcdir}/torcs-${pkgver/_/-}
  ./configure --prefix=/usr --x-includes=/usr/include --x-libraries=/usr/lib
  make DESTDIR=${pkgdir} datainstall
  find ${pkgdir} -type d -exec chmod 755 {} \;
}
